Implement selection related vfuncs for quartz
authorMatthias Clasen <mclasen@redhat.com>
Fri, 17 Dec 2010 18:29:54 +0000 (13:29 -0500)
committerKristian Rietveld <kris@gtk.org>
Wed, 22 Dec 2010 16:47:01 +0000 (17:47 +0100)
gdk/quartz/gdkdisplay-quartz.c
gdk/quartz/gdkprivate-quartz.h
gdk/quartz/gdkselection-quartz.c

index 5b003fe8273869246808f4c758c1e0501d751bf3..fa31e360a3109558c087c80f78eb566c268a4515 100644 (file)
@@ -256,4 +256,7 @@ _gdk_display_quartz_class_init (GdkDisplayQuartz *class)
   display_class->get_keymap = _gdk_quartz_display_get_keymap;
   display_class->get_selection_owner = _gdk_quartz_display_get_selection_owner;
   display_class->set_selection_owner = _gdk_quartz_display_set_selection_owner;
+  display_class->send_selection_notify = _gdk_quartz_display_send_selection_notify;
+  display_class->get_selection_property = _gdk_quartz_display_get_selection_property;
+  display_class->convert_selection = _gdk_quartz_display_convert_selection;
 }
index 89bbd7522fc739f9bb22d81c51e7b5787e06df96..8e2d81164eb9518c4af00f83f08739d7dbe7d448 100644 (file)
@@ -283,7 +283,21 @@ gboolean    _gdk_quartz_display_set_selection_owner (GdkDisplay *display,
                                                      gboolean    send_event);
 GdkWindow * _gdk_quartz_display_get_selection_owner (GdkDisplay *display,
                                                      GdkAtom     selection);
-
-
+void        _gdk_quartz_display_send_selection_notify (GdkDisplay       *display,
+                                                       GdkNativeWindow  requestor,
+                                                       GdkAtom          selection,
+                                                       GdkAtom          target,
+                                                       GdkAtom          property,
+                                                       guint32          time);
+gint        _gdk_quartz_display_get_selection_property (GdkDisplay     *display,
+                                                        GdkWindow      *requestor,
+                                                        guchar        **data,
+                                                        GdkAtom        *ret_type,
+                                                        gint           *ret_format);
+void        _gdk_quartz_display_convert_selection      (GdkDisplay     *display,
+                                                        GdkWindow      *requestor,
+                                                        GdkAtom         selection,
+                                                        GdkAtom         target,
+                                                        guint32         time);
 
 #endif /* __GDK_PRIVATE_QUARTZ_H__ */
index 946a2c2bfc382daafbbf3d2438ead354f51ef893..486c5230b1ae9018958bebfb838051b3443d41c4 100644 (file)
@@ -45,31 +45,33 @@ _gdk_quartz_display_get_selection_owner (GdkDisplay *display,
 }
 
 void
-gdk_selection_convert (GdkWindow *requestor,
-                      GdkAtom    selection,
-                      GdkAtom    target,
-                      guint32    time)
+_gdk_quartz_display_convert_selection (GdkDisplay *display,
+                                       GdkWindow  *requestor,
+                                       GdkAtom     selection,
+                                       GdkAtom     target,
+                                       guint32     time)
 {
   /* FIXME: Implement */
 }
 
 gint
-gdk_selection_property_get (GdkWindow  *requestor,
-                           guchar    **data,
-                           GdkAtom    *ret_type,
-                           gint       *ret_format)
+_gdk_quartz_display_get_selection_property (GdkDisplay *display,
+                                            GdkWindow  *requestor,
+                                            guchar    **data,
+                                            GdkAtom    *ret_type,
+                                            gint       *ret_format)
 {
   /* FIXME: Implement */
   return 0;
 }
 
 void
-gdk_selection_send_notify_for_display (GdkDisplay *display,
-                                      guint32     requestor,
-                                      GdkAtom     selection,
-                                      GdkAtom     target,
-                                      GdkAtom     property,
-                                      guint32     time)
+_gdk_quartz_display_send_selection_send_notify (GdkDisplay      *display,
+                                                GdkNativeWindow  requestor,
+                                                GdkAtom          selection,
+                                                GdkAtom          target,
+                                                GdkAtom          property,
+                                                guint32          time)
 {
   /* FIXME: Implement */
 }
@@ -77,7 +79,7 @@ gdk_selection_send_notify_for_display (GdkDisplay *display,
 gint
 gdk_text_property_to_text_list_for_display (GdkDisplay   *display,
                                            GdkAtom       encoding,
-                                           gint          format, 
+                                           gint          format,
                                            const guchar *text,
                                            gint          length,
                                            gchar      ***list)